package com.zwl.smartplatform;

import com.zwl.smartplatform.utils.MD5Utils;
import org.junit.Test;

import java.util.Random;

public class TextMain {
    @Test
    public void test01(){
        char[] zifu={'a','b','c','d','e','f','g','t'};
        StringBuilder stringBuilder=new StringBuilder();
        Random random=new Random();
        for (int i=20; i>0;i--){
            int index=random.nextInt(7);
            stringBuilder.append(zifu[index]);
        }
        System.out.println(stringBuilder.toString());
    }
    @Test
    public void test02() {
        String randomString = MD5Utils.getRandomString(15);
        System.out.println(randomString);
        randomString = MD5Utils.getRandomString(15);
        System.out.println(randomString);
    }
}
